package com.useeinfo.oa.modules.wuHanCommon.base.enums;

import com.useeinfo.framework.sugar.data.TitleVO;
import com.useeinfo.oa.common.config.ExcelExportMap;

import java.util.List;

/**
 * 机组
 */
public enum MeterReadingEnum {

    CENTRIFUGAL_CHILLER("CENTRIFUGAL_CHILLER", "离心式冷冻机组"),
    SCREW_CHILLER("SCREW_CHILLER", "螺杆式冷冻机组"),
    CENTRIFUGAL_AIR_COMPRESSOR("CENTRIFUGAL_AIR_COMPRESSOR", "离心式空压机组"),
    SCREW_AIR_COMPRESSOR_UNIT("SCREW_AIR_COMPRESSOR_UNIT", "螺杆式空压机组");


    private String code;

    private String name;

    public String getCode() {
        return this.code;
    }

    public String getName() {
        return this.name;
    }


    MeterReadingEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public static List<TitleVO> getTitleVO(MeterReadingEnum meterReadingEnum) {
        if (MeterReadingEnum.CENTRIFUGAL_AIR_COMPRESSOR == meterReadingEnum) {
            return ExcelExportMap.CENTRIFUGAL_AIR_COMPRESSOR();
        } else if (MeterReadingEnum.SCREW_AIR_COMPRESSOR_UNIT == meterReadingEnum) {
            return ExcelExportMap.SCREW_AIR_COMPRESSOR_UNIT();
        } else if (MeterReadingEnum.CENTRIFUGAL_CHILLER == meterReadingEnum) {
            return ExcelExportMap.CENTRIFUGAL_CHILLER();
        } else if (MeterReadingEnum.SCREW_CHILLER == meterReadingEnum) {
            return ExcelExportMap.SCREW_CHILLER();
        }
        return null;
    }
}
